package com.xgimi.open.skill.datamanager.domain.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xgimi.open.skill.datamanager.domain.entity.SpeechRuleDO;

import java.util.List;

/**
* @author coderzpw.zhang
* @description 针对表【speech_rule(说法规则表)】的数据库操作Service
* @createDate 2023-02-07 19:23:48
*/
public interface SpeechRuleService extends IService<SpeechRuleDO> {

    IPage<SpeechRuleDO> pageQuery(IPage<SpeechRuleDO> page, SpeechRuleDO speechRuleDO);

    SpeechRuleDO queryById(Long id);

    public List<SpeechRuleDO> listByIntentId(Long intentId);

    List<SpeechRuleDO> queryByIntentIds(List<Long> intentIds);

    boolean updateByIdAndVersion(SpeechRuleDO speechRuleDO);

    boolean removeByIntentIds(List<Long> intentIds);
    boolean physicalDeleteByIntentIds(List<Long> intentIds);
}
